package net.hnedu.config;

import java.util.HashMap;
import java.util.Collection;
import java.util.List;
import java.util.ArrayList;


public class Roles {
  private HashMap map;

  public Roles() {
    this.map = new HashMap();
  }

  public void addRole(Role role) {
    this.map.put(role.getRoleid(),role);
  }

  public Role getRole(String roleid) {
    return (Role)this.map.get(roleid);
  }

  public Collection values() {
    return this.map.values();
  }

  public List list() {
    ArrayList list = new ArrayList();
    list.addAll(this.values());
    return list;
  }

}
